
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-1">商户名</label>

    <div class="col-sm-10">
        <input type="text" name="merchantName" readonly class="form-control" placeholder="请输入产品名称" data-validate="required" value="${product?.merchant?.name}">
    </div>
</div>
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-1">产品名称</label>

    <div class="col-sm-10">
        <input type="text" name="product.name" readonly class="form-control" placeholder="请输入产品名称" data-validate="required" value="${product?.name}">
    </div>
</div>


<div class="form-group-separator"></div>

<div class="form-group">
    <label class="col-sm-2 control-label">产品大类</label>

    <div class="col-sm-10">
        <input type="text" name="productType.name" readonly class="form-control" placeholder="请输入产品名称" data-validate="required" value="${product?.parentType?.name}">
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">产品小类</label>

    <div class="col-sm-10">
        <input type="text" name="productType.name" readonly class="form-control" placeholder="请输入产品名称" data-validate="required" value="${product?.productType?.name}">
    </div>
</div>

<div class="form-group-separator"></div>

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-3">产品主图</label>

    <div class="col-sm-10">

    </div>
</div>

#{if product?.mainImage != null && product?.mainImage != ''}
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-3"></label>

    <div class="col-sm-10">
        <img src="${product?.mainImage}" style="width: 100px">
    </div>
</div>

#{/if}
<div class="form-group-separator"></div>
#{if productImageList.size() > 0}
    <div class="form-group">
        <label class="col-sm-2 control-label" for="field-3">产品大图</label>
            <div class="col-sm-10">
            </div>
    </div>
    #{list productImageList , as :'productImage'}
        <div class="form-group">
          <label class="col-sm-2 control-label" for="field-3"></label>
                 #{if productImage?.imgPath != null && productImage?.imgPath != ''}
                   <div class="col-sm-10">
                        <img src="${productImage?.imgPath}" style="width: 100px">
                   </div>
                  #{/if}
        </div>
    #{/list}
<div class="form-group-separator"></div>
#{/if}

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-5">售价</label>

    <div class="col-sm-10">
        <input type="text" class="form-control" readonly name="product.merchantPrice" value="${product?.merchantPrice}" id="field-5" placeholder="0">
    </div>
</div>

<div class="form-group-separator"></div>

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-6">库存</label>

    <div class="col-sm-10">
        <input type="text" class="form-control" readonly name="product.stock" value="${product?.stock}" id="field-6" placeholder="100">
    </div>
</div>

<div class="form-group-separator"></div>

<div class="form-group">
    <label class="col-sm-2 control-label" for="field-5">商品描述</label>

    <div class="col-sm-10">
        <textarea class="form-control " readonly name="product.pcContent"  name="sample_wysiwyg" id="sample_wysiwyg">${product?.pcContent}</textarea>
    </div>
</div>

<div class="form-group-separator"></div>


<div class="form-group">
    <label class="col-sm-2 control-label">商品状态</label>

    <div class="col-sm-10">
        <label class="radio-inline">
            <input type="radio"  disabled name="product.productStatus" ${product?.productStatus == enums.ProductStatus.UP ? 'checked' : ''} value="UP">
            上架
        </label>
        <label class="radio-inline">
            <input type="radio"   disabled name="product.productStatus" ${product?.productStatus == enums.ProductStatus.DOWN ? 'checked' : ''} value="DOWN">
            下架
        </label>
    </div>
</div>

<div class="form-group-separator"></div>

*{
<div class="form-group">
    <label class="col-sm-2 control-label" for="field-5"></label>



</div>}*
